---http remote call to authing
-- @module
local _svr = {}
-- ===================================
-- default params
local Httpc = require("resty.http")
-- ===================================

local http_client = function()
    local cli = Httpc.new()
    return cli
end

local function __toString(tab)
    local ret_str = ""
    local query_str = "%s=%s"
    local is_first = true
    for k, v in pairs(tab) do
        ret_str = ret_str .. (is_first and "" or "&") .. string.format(query_str, k, v)
        is_first = false
    end
    print(ret_str, '>>ret str')
    return ret_str
end

return {
    meta_tostring = __toString,
    http = http_client
}
